package com.itheima.mapper;

import com.itheima.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author huangbin
 * @date 2022/6/8 15:40
 * 员工持久层
 */
@Mapper
public interface EmployeeMapper {
    /**
     * 登录
     * username 用户名
     *  password 密码
     * @return 成功条数
     */
    @Select("select * from employee where username =#{username} and password=#{password};")
    Employee login(Employee employee);
}
